A CPA calculation of E1 optical gaps in III-V ternary alloys