A theoretical study of the spectroscopic states of the CF molecule