Electronic and mechanical responses of two-dimensional HfS
2
, HfSe
2
, ZrS
2
, and ZrSe
2
from first-principles