Electronic structure of high-Tc superconductors: Effects of oxygen stoichiometry and surface reactions with alkali metals