what us state forms the western boundary of montana