A levelset method in shape and topology optimization for variational inequalities