HARDWARE ARCHITECTURE OF SMART ENERGY MANAGEMENT SYSTEM