Phases of active matter composed of multicellular magnetotactic bacteria near a hard surface