Janzen–Connell effects and habitat-induced aggregation synergistically promote species coexistence