Dual topological insulator and insulator-semimetal transition in mirror-symmetric honeycomb materials