[XLA:GPU] Extract tiled block creation in the Triton emitter into a standalone function and add tests.
[XLA:GPU] Extract tiled block creation in the Triton emitter into a standalone function and add tests.

This change both extracts the logic and generalizes it so that it works with more than one dimension.
