Thickness and strain effects on electronic structures of transition metal dichalcogenides: 2H-MX2 semiconductors (M = Mo, W; X = S, Se, Te)