Measurement of the B0 and B+ meson lifetimes with fully reconstructed hadronic final states