Olaf Scholz formally sworn in as German chancellor