Nematic-isotropic transition in porous media.