Multipolar interactions in f-electron systems: The paradigm of actinide dioxides