Geometrical control of photocurrent in active Si nanowire devices