DFT and TD-DFT calculations on the electronic structures and spectroscopic properties of cyclometalated platinum(II) complexes.