Development of polymeric nanoparticles with controlled drug release for dermal application