Role of ring torsion in the electrocyclic transformation between cyclobutene and butadiene. Theoretical study