By 1814, after scores of battles and sieges throughout Iberia, the Allies had managed to push the French out of the peninsula