Friedrich Merz will try to govern with a moderate coalition at a time of rising support for extremist political forces