Thermoanalytical investigation of the (YBa22Cu6Oy superconductor. I. reactions forming the superconductor and its phase changes