A Flexible Architecture for Key Performance Indicators Assessment in Smart Cities