Ratchet effect for nanoparticle transport in hair follicles