Dynamic-Metasurface-Based Cavity Structures for Enhanced Absorption and Phase Modulation