Correlation between magnetic homogeneity, oxygen content, and electrical and magnetic properties of perovskite manganite thin films