Modeling As release and attenuation by considering a threshold energy for microbially mediated redox reactions