Ultrathin dual-mode filtering characteristics of terahertz metamaterials with electrically unconnected and connected U-shaped resonators