Quasar black hole masses and accretion rates across cosmic time