what causes metal to corrode