Refactor Webnn IsSupported*() to use constant initializers. (#24118)
### Description
<!-- Describe your changes. -->
This PR continues the work started at
https://github.com/microsoft/onnxruntime/pull/19401.
### Motivation and Context
An overridable initializer should not have a fixed value included in an
WebNN model as it could be changed at runtime. The current check doesn't
include validating that the initializer is constant.