[WebNN] Support RotaryEmbedding for opset 23 (#24736)
The
[RotaryEmbedding](https://onnx.ai/onnx/operators/onnx__RotaryEmbedding.html#rotaryembedding)
op has been released in opset 23 and has some differences compared to
the original contributed op:
- The order of input indexes changed
- The position_ids input is optional
- If the input is 3D, the num_heads must be provided
- If it is full rotation, we need to slice the gathered cosine/sine to
get the shape [batch_size, sequence_length, rotary_embedding_dim / 2]