who was involved in the battle of york