Evidence of a liquid-liquid phase transition in H2O and D2O from path-integral molecular dynamics simulations