Phosphorus-containing thermosets obtained by cationic copolymerisation of glycidyl compounds with a spiroorthoester or γ-butyrolactone