A survey of submillimeter C and CO lines in nearby galaxies