Thermal decomposition and chemical interactions observed by mass spectrometry of Y-Ba-Cu-O superconductors