why did france invade mexico where was the battle