Selective excitation of resonances in gammadion metamaterials for terahertz wave manipulation