Tunable size selectivity and nanoparticle immobilization on a photonic crystal optical trap.