Tuning the crystallinity of thermoelectric Bi2Te3 nanowire arrays grown by pulsed electrodeposition