Disentangling multipole resonances through a full x-ray polarization analysis