Growth method for A III B V and A IV B VI heterostructures