Corn futures post first advance in a week