What is the primary function of a local environmental health department in the United States regulatory framework?