Band spectrum for an electron on a Sierpinski gasket in a magnetic field