A hemivariational inequality approach to the unilateral contact problem and substationarity principles