Energy spectra and turbulence generation in the wake of magnetic obstacles