Latent heat of structural transformations in ZrV2 and HfV2