Switchable metamaterial for enhancing and localizing electromagnetic field at terahertz band