Inverse problems for nonlinear quasi-hemivariational inequalities with application to mixed boundary value problems