Probabilistic quantum metrology