what borders the state of montana to the west?