Enviar aquest missatge de text: Quantum metrology with imperfect states and detectors