Multifunctional polymeric materials for drug and gene delivery