Characterization and device application of indium doped ZnO homojunction prepared by RF magnetron sputtering