Optimal estimation of quantum observables