WA ranks second in world for mining investment