Deviations from Vegard's law in ternary III-V alloys