Electromagnetic field enhancement in metallic metamaterials : A potential for compact terahertz free-electron lasers