My recommendation is not to substitute. They're different products that require different cooking methods and will give you different results. Cornmeal is more closely related to polenta than it is to grits.