d-wave holographic superconductors with backreaction in external magnetic fields