Energy loss of protons in Au, Pb, and Bi using relativistic wave functions