Theoretical study on the regioselectivity of electrophilic reactions of heterosubstituted allyl systems