Freeport McMoRan gains 4% as copper prices lift post-earnings outlook