J/? Production in Ultra-Peripheral Proton-Lead and Lead-Lead Collisions with CMS