Linklaters nears merger with splitting Japanese firm