[webgpu] add util functions for creating tensor view (#24566)
### Description
The added util functions can be used in 2 ways:
- create a reshaped tensor from an existing one.
- create a reinterpret view of a different type (will be useful in
(u)int4/(u)int8 operator implementation)