Germany `would accept UK exit from EU` to protect migration rules