Phosphonic acid: preparation and applications