Esters of phosphoric or thiophosphoric acids