Multiband electron spin resonance spectroscopy of rare-earth S ions in glasses: the isospectral frequency ratio method