Thermal stability analysis of YBCO-coated conductors subject to over-currents