X ray standing wave and ion scattering studies of metal semiconductor interfaces and epitaxial layers