A general analytical solution to the problem of Malmquist bias due to lognormal distance errors | Synapse