Energy loss of protons in W using fully relativistic calculations and mean excitation energies of W, Au, Pb, and Bi