Stacking effects on the electronic and optical properties of bilayer transition metal dichalcogenides MoS 2 , MoSe 2 , WS 2 , and WSe 2