Density functional studies of the electronic structure and adsorption at molybdenum oxide surfaces