Switchable bifunctional metamaterial for terahertz anomalous reflection and broadband absorption