Relationship between field emission properties and spatial distributions of emission sites: Diamond films and graphitic carbon films