Electronic and mechanical responses of two-dimensional HfS2, HfSe2, ZrS2, and ZrSe2 from first-principles