Britain's Tom Sykes has captured his first World Superbikes Championship with two podium finishes in Jerez.