Conformational sampling, catalysis, and evolution of the bacterial phosphotriesterase