Environmental resistance of intermetallic compounds and composite materials