which of the electromagnetic spectrum has the longest frequency but shorter wavelengths​