Polarization induced Z2 and Chern topological phases in a periodically driving field