Chemical evolution during gas-rich galaxy interactions