Measurement of the B+ and B0 Lifetimes from Semileptonic Decays