Electronic and electrical properties of functional interfaces studied by hard X-ray photoemission