The 5-10 keV AGN luminosity function at 0.01 < z < 4.0