Precise measurement of quantum observables with neural-network estimators