A mechanism study of nanoparticles for enhanced oil recovery