Calorimetric Study of the Transitions Between the Different Vortex States in YBa2Cu3O7