Virtual elements and barycentric finite elements in computational mechanics