The microlocal spectrum condition and wick polynomials of free fields on curved spacetimes