Thermal-electric model for piezoelectric ZnO nanowires