Exploring extreme matter and spacetimes with gravitational waves