Functional modification of poly(vinyl alcohol) through phosphorus containing nitrogen heterocyclic moieties