Computation of privacy-preserving prices in smart grids