Paramount and Skydance agree to terms of a merger deal