Runs state selection logic starting at the specified state, walking towards the leaf states. If a state cannot be selected, false is returned. If NextState is a selector state, SelectStateInternal is called recursively (depth-first) to all child states (where NextState will be one of child states). If NextState is a leaf state, the active states leading from root to the leaf are returned.