Analysis of the Influence of Nonperiodic Magnetic Fields and Off-Axis Effects on the Radiation of X-Ray FEL and Other FELs