Dielectric phase transitions in the superconducting C15 compounds ZrV2 and HfV2