Passive Scalar Function Approximation Using SOS Polynomials