[complex32] real and imag (also remove unused real and imag kernels)
Reference: #74537
Removes unused kernels for `real` and `imag` for CPU and CUDA
Also adds `complex_types_and` to `common_dtype`.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/76615
Approved by: https://github.com/anjali411