Smart integration of Si NWs arrays in all-silicon thermoelectric micronanogenerators