which two properties of electromagnetic waves change as you move from one end of the electromagnetic spectrum to another