How and when are substrates selected for type III secretion?