Pošalji tekstualnu poruku: Quantum metrology with imperfect states and detectors