Controlling open quantum systems