Lucas Raymond and Leo Carlsson each scored two goals while Jakob Markstrom made 24 saves to lead Sweden to a 5-2 victory over Czechia.