A quantization property for blow up solutions of singular Liouville-type equations