Text this: Synthetic and structural studies of phosphonic amides and esters