Structural, electrical, and optical properties of R_xBa_1−xSnO_3 (R = La, Nd, Sm, Er) transparent thin films