Functional polymeric nanoparticles for dexamethasone loading and release