Dielectronic recombination rates, ionization equilibrium, and radiative energy-loss rates for neon, magnesium, and sulfur ions in low-density plasmas