General treatment of off-specular resonant soft x-ray magnetic scattering using the distorted-wave Born approximation: Numerical algorithm and experimental studies with hybrid chiral domain structures