Monolayer alkali and transition-metal monoxides: MgO, CaO, MnO, and NiO