Ab Initio Study of Temperature and Pressure Dependence of Energy and Phonon-Induced Dephasing of Electronic Excitations in CdSe and PbSe Quantum Dots†