Explain how infrared and ultraviolet rays can be detected in the laboratory and state their uses each