Compounds having two or more phosphorus acid groups or esters thereof