Comparative analysis of diverse cell states establishes an epigenetic basis for inferring regulatory genes governing cell identity