Marcus Ericsson wins chaotic inaugural IndyCar race in Markham