harvesting of trunks with a mechanical arm in a forest .