The role of mechanical factors in the pathogenesis of short-term and prolonged spasm of the cerebral arteries