Why did Napoleon have trouble fighting the enemy forces in the peninsular war?