Smolyar wins Formula 3 thriller in first sprint race at Paul Ricard 