InSe as a case between 3D and 2D layered crystals for excitons