Effective strain gradient continuum model of metamaterials and size effects analysis