Optimal control of molecular alignment in dissipative media.