From gas flow to colloidal diffusion: theoretical and experimental investigations of transport in nano- and microchannels, on the ground and in space