Germany says it is committed to maintaining and deepening economic ties with China, as Chancellor Friedrich Merz makes his first visit to Beijng.