Quantum Criticality via Magnetic Branes