Expressive Power of Graph Neural Networks for (Mixed-Integer) Quadratic Programs