The two-step gamma cascade method as a tool for studying photon strength functions of intermediate-weight and heavy nuclei