Characterization of nanogenerators based on S-doped zinc oxide nanorod arrays