The behaviors of expansion functor on monomial ideals and toric rings