Text this: Layered multiple scattering approach to Hard X-ray photoelectron diffraction: theory and application