Constraining resonances by using the electroweak effective theory