Polarization rotation by external electric field in the two-dimensional antiferroelectric squaric acid H2C4O4