Ext2Gen: Alignment through Unified Extraction and Generation for Robust Retrieval-Augmented Generation