Phonons in crystals. Density of states and heat capacity