Alkali-metal oxides. I. Molecular and crystal-field effects in photoemission