Wheat, corn extend losses on firm dollar