which two waves lie at the beginning and end of the electromagnetic spectrum?