The band structure and Fermi surface of magnesium