Adaptive regulation of wall shear stress optimizing vascular tree function