Gravitational waves, extended theories of gravity