Optimal strategies for integrated forest management in megacities combined with wood and carbon services