Mining typical load profiles in buildings to support energy management in the smart city context