Structural and electronic characteristics of pure and doped ZnO varistors