Capture of grains into resonances through Poynting-Robertson drag