NMR-controlled titrations: characterizing aminophosphonates and related structures