On the inversion and characterization of the Riesz potentials in the weighted Lebesgue spaces