Two-dimensional topological insulators with tunable band gaps: Single-layer HgTe and HgSe