Hemivariational inequalities for linear and non linear elastic materials