How does a maser measure the electromagnetic spectrum?