Polarized neutron scattering and x-ray magnetic circular dichroism studies of the heavy-fermion superconductor UNi2Al3