Development and application of three-dimensional potential source contribution function (3D-PSCF)