Spectroscopic properties of CS and HCS from ab initio calculations