Commutators of singular integrals on generalized $L^p$ spaces with variable exponent