Regulating the electrical behaviors of 2D inorganic nanomaterials for energy applications.