A theoretical study of the XP and NEXAFS spectra of alanine: gas phase molecule, crystal, and adsorbate at the ZnO(10 ̅10) surface.