XPS depth profiling of functional materials: applications of ion beam etching techniques