Design of an Open Smart Energy Gateway for Smart Meter Data Management