Theoretical study of optical and electronic properties of p-terphenyls containing cyano substituents as promising light-emitting materials