Regularity of solutions to elliptic equations on Herz spaces with variable exponents