Consequences of open-system melting in tectonics