Optimal forest management in the presence of intraspecific competition