Proterozoic evolution of the western margin of the Wyoming craton: implications for the tectonic and magmatic evolution of the northern Rocky Mountains