CBS profit up on higher licensing, pay TV revenue