Phases of Holographic Superconductors in an External Magnetic Field