Gamma decay of giant resonances by using Skyrme functionals