Preparation of III-V compounds