Atomic structural mechanism for ferroelectric-antiferroelectric transformation in perovskite NaNbO3