Electronic structure and crystallography of MoTe2 and WTe2