S -wave heavy quarkonium spectrum with next-to-next-to-next-to-leading logarithmic accuracy