Consumer price indices: purposes and definitions. A useful general approach to the construction of the indices and some measures of the divergences between them