Esters of thiopolyphosphoric acids or anhydrides