A generalization of Grüneisen's theory of solids and its application to solid argon