Photoemission studies of adsorbed oxygen and oxide layers