Dynamical decoupling of structured environments