[PT2E][Quant][BE] Refactor observer code (#99066)
Combine per channel and per tensor observer code
Differential Revision: [D44918494](https://our.internmc.facebook.com/intern/diff/D44918494/)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/99066
Approved by: https://github.com/jerryzh168