Dynamics of the spin-boson model with a structured environment