Tunable second-order topological insulators in Chern insulators 2H-FeX2 (X = Cl and Br)