GAMMA-RAY BURSTS FROM DELAYED COLLAPSE OF NEUTRON STARS TO QUARK MATTER STARS