A theoretical study of intramolecular Diels–Alder reactions, diene–(CH2)n–dienophile (n=1, 2, 3 and 4)