Imaging cos(s, z): A method to separate the geometric and compositional contributions on STM barrier height profiles