Two-dimensional semiconductors ZrNCl and HfNCl: Stability, electric transport, and thermoelectric properties