Determining the core-collapse supernova explosion mechanism with current and future gravitational-wave observatories