Electronic band structure of magnesium and magnesium oxide: experiment and theory