Developing an efficient and privacy-preserving energy theft detection system for smart grids