Impacts of phase transformation on the thermoelectric properties of ZnO nanowires