convert flux signal to noise ratio to an error in magnitude
@param [in] snr is the signal to noise ratio in flux
@param [out] the resulting error in magnitude
mag_error_from_snr()