Newcrest agrees to acquire Pretium Resources