Energetic-ion-driven global instabilities in stellarator/helical plasmas and comparison with tokamak plasmas