Merkel pledges justice after IS attacks