Measurements of the B+, B0, B0 s meson and Λ0 b baryon lifetimes