Surfactants, colloids, and electrolytes: Complex fluids for energy and the environment