Design and commissioning of third harmonic cavities at BESSY II