Potential field of a stationary electric current in a stratified medium with a three-dimensional perturbing body