Dynamics of quantum systems embedded in a continuum