Terahertz perfect absorber based on flexible active switching of ultra-broadband and ultra-narrowband