Potential NRQCD and heavy-quarkonium spectrum at next-to-next-to-next-to-leading order