Control of Open Quantum Systems via Dynamical Invariants