fix cos op for  nnapi delegate
fix #62091

Still convert cos to sin with $cos(x) = sin(\frac{\pi}{2} - x)$
But since input tensor is not available when `TransformCosIntoSupportedOps()` is called, we should do `sub` then `sin` instead of manipulating the input tensor as suggested by in #62091 

Tested on Pixel 8 Pro.

When tested with `nnapi_delegate_test` built with 
```
$ bazel build --config android_arm64  //tensorflow/lite/delegates/nnapi:nnapi_delegate_test
```

before this PR.
```
husky:/data/local/tmp $ ./nnapi_delegate_test  --gtest_filter=Elementwise.Cos                                               
Running main() from gmock_main.cc
Note: Google Test filter = Elementwise.Cos
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from Elementwise
[ RUN      ] Elementwise.Cos
INFO: Initialized TensorFlow Lite runtime.
INFO: Created TensorFlow Lite delegate for NNAPI.
WARN: Having a manually-set TfLite delegate, and bypassing KernelTestDelegateProviders
VERBOSE: Replacing 1 out of 1 node(s) with delegate (TfLiteNnapiDelegate) node, yielding 1 partitions for the whole graph.
ERROR: NN API returned error ANEURALNETWORKS_BAD_DATA at line 6290 while identifying model inputs and outputs.

ERROR: Node number 1 (TfLiteNnapiDelegate) failed to prepare.
ERROR: Restored original execution plan after delegate application failure.
[       OK ] Elementwise.Cos (78 ms)
[----------] 1 test from Elementwise (79 ms total)

[----------] Global test environment tear-down
[==========] 1 test from 1 test suite ran. (79 ms total)
[  PASSED  ] 1 test.
husky:/data/local/tmp $ 

```
after
```
husky:/data/local/tmp $ ./nnapi_delegate_test --gtest_filter=Elementwise.Cos                                                       
Running main() from gmock_main.cc
Note: Google Test filter = Elementwise.Cos
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from Elementwise
[ RUN      ] Elementwise.Cos
INFO: Initialized TensorFlow Lite runtime.
INFO: Created TensorFlow Lite delegate for NNAPI.
WARN: Having a manually-set TfLite delegate, and bypassing KernelTestDelegateProviders
VERBOSE: Replacing 1 out of 1 node(s) with delegate (TfLiteNnapiDelegate) node, yielding 1 partitions for the whole graph.
[       OK ] Elementwise.Cos (83 ms)
[----------] 1 test from Elementwise (84 ms total)

[----------] Global test environment tear-down
[==========] 1 test from 1 test suite ran. (84 ms total)
[  PASSED  ] 1 test.

```