A realization of irreducible representations of affine Weyl groups