Electronic band structures and charge density wave of 2H-MX2(M=Nb,Ta,X=S,Se)