A Linking Type Method to Solve a Class of Semilinear Elliptic Variational Inequalities