Singularities of the scattering kernel for trapping obstacles