A mechanistic study of the electrochemical behavior of pendimethalin herbicide