Two-dimensional metamaterials as meta-foams for optimized surface-enhanced solar steam generation