A theoretical model for threading dislocation reduction during selective area growth