Estimation of the modulus of a complex-valued quantity