What king of Scots was deposed before an alliance between Scotland and France was signed?