An approach to quality analysis, gap filling and homogeneity of monthly rainfall series