Mechanisms of switching in an antiferroelectric liquid crystal device revealed by time‐resolved X‐ray scattering