Merkel wants to avoid ‘Brexit’ but won’t compromise core EU principles