Energy extraction from shallow tidal flows