A theoretical study on the regioselectivity of electrophilic reactions of heterosubstituted allyl systems