A Distributed Privacy-Aware Architecture for Communication in Smart Grids