Emergence of topological nodal lines and type-II Weyl nodes in the strong spin-orbit coupling system InNbX2 ( X=S ,Se)