Riesz-Kolmogorov theorem in variable exponent Lebesgue spaces and its applications to Riemann-Liouville fractional differential equations