A generic model of thinning and stand density effects on forest growth, mortality and net increment