European patent offices to take on UK work