German carmakers optimistic on 2018 growth even as tariffs loom