Goodbye metals, hello marijuana: Mining firms are switching as the lure of commodities fades