Fix rotary embedding to follow spec on attribute constraints (#26044)
### Description
<!-- Describe your changes. -->
`num_heads` is not necessarily required from users when input shape is
4D.
### Motivation and Context
<!-- - Why is this change required? What problem does it solve?
- If it fixes an open issue, please link to the issue here. -->
To follow ONNX spec,
https://github.com/onnx/onnx/blob/main/docs/Operators.md#RotaryEmbedding,
the original constraints on attributes were wrong.
NOTE: 3 rotary embedding tests are expected to be wrong until next
release.