Forest ecosystem theory based on material balance