Excitation function measurements of the elastic and inelastic scattering of protons in the 1600 to 5300 keV energy range for Li and F