Sarina Wiegman says her "hurt" England side need setbacks like their humbling defeat by Spain in order to improve.