In situ annealing effects on magnetic properties and variable-range hopping of iron-based ladder material BaFe2S3