Measurement of B0 - B0-bar flavor oscillations in hadronic B0 decays