Curvilinear virtual elements for contact mechanics