The three-loop QED photon vacuum polarization function in the -scheme and the four-loop QED β-function in the on-shell scheme