A potential attenuation equation for cathodically polarized pipelines and risers