Electric Energy Storage in Smart Buildings