Application of the Ps-function method to macromolecular structure determination