Habitat availability and depth-driven population demographics regulate reproductive output of a coral reef fish