[C II] emission from galactic nuclei in the presence of X-rays