Microwave magnetic-field measurements by a modulated scattering technique