Valence-band offsets and Schottky barrier heights of layered semiconductors explained by interface-induced gap states | Synapse