Algebraic statistics of level codings for fractional factorial designs