Photoelectron spectra of GeS, GeSe, SnS and SnSe and their relation to structural trends and phase transitions within the average-valence-<5> compounds