Active Terahertz Shielding and Absorption Based on Graphene Foam Modulated by Electric and Optical Field Excitation