Reference dependent invariant sets: Sum of squares based computation and applications in constrained control. (July 2021)