Negative differential resistance at atomic contacts