Dynamics and stationary states of open quantum systems