Mechanism of dynamic reorientation of cortical microtubules due to mechanical stress