Electrically controlled crossing of energy levels in quantum dots in two-dimensional topological insulators