Invensys legal chief to leave following £3.4bn takeover by Schneider Electric