Competitor density cues for habitat quality facilitating habitat selection and investment decisions