Energetics and mechanism of proline racemase