Coherent high-power RF wakefield generation by electron bunch trains in a metamaterial structure