Text this: Practical prototype for energy management system in smart microgrid considering uncertainties and energy theft