Classification of integrable hydrodynamic chains and generating functions of conservation laws