Theoretical explanation of the non-equipotential quench behaviour in Y–Ba–Cu–O coated conductors