On the twist-2 and twist-3 contributions to the spin-dependent electroweak structure functions