Approaching Quantum-Limited Metrology with Imperfect Detectors by Using Weak-Value Amplification.