derivative of the error function