Stand-alone smart wireless sensor nodes providing dynamic routing by means of adaptive beamforming