Poly(2-oxazoline)-based functional polymers in aqueous and non-aqueous systems