CP violation effects in the diphoton spectrum of heavy scalars