Parametrization of LSDA+U for noncollinear magnetic configurations: Multipolar magnetism in UO2