M x-ray production cross sections of heavy elements for low and high proton energy