Отправить по sms: Quantum metrology with imperfect states and detectors