Electronic and optical properties of CeO under pressure