Barcelona invests in Smart City