Iterative double cyclization reaction by SRN1 mechanism. A theoretical interpretation of the regiochemical outcome of diazaheterocycles