Angela Merkel vows to work with Social Democrats, extending term for fourth year