The development of Fresnel contrast analysis, and the interpretation of mean inner potential profiles at interfaces