Graded metasurface for enhanced sensing and energy harvesting