German economic sentiment improves but Brexit, trade risks weigh