Indium segregation during III-V quantum wire and quantum dot formation on patterned substrates