Electron band structure in a two-dimensional periodic magnetic field