Optical Trapping in Micro- and Nanoconfinement Systems: Role of Thermo-Fluid Dynamics and Applications