Deterioration of metals by chemical reaction with their environment