A tangent formula derived from Patterson-function arguments. III: Structure determination of zeolitic and layered materials from low-resolution powder diffraction data