how does electromagnetic waves differ from mechanical waves​