A Least-squares Approach to Depth Determination from Numerical Horizontal Self-potential Gradients