In memoir, Merkel defends her record on the refugee crisis and Russia ties