Text this: Detection of energy theft and defective smart meters in smart grids using linear regression