Dephasing in semiconductor–superconductor structures by coupling to a voltage probe