Structural properties and quasiparticle energies of cubic SrO, MgO, SrTiO3