Isospin-breaking effects in the two-pion contribution to hadronic vacuum polarization