replace usage of gsl::narrow and gsl::narrow_cast in WebGPU EP (#23926)
### Description
`gsl::narrow` does not work in no exception build.
- use `onnxruntime::narrow` if necessary;
- or change to `static_cast` if it's obviously safe.
also apply the changes to usage of `gsl::narrow_cast`, which does not
apply checks.