Influence of spacer group on the structure and thermal properties of copolymers based on acrylonitrile and methacrylic 1,3-thiazole and 1,2,3-triazole derivatives