Microscopic treatment of upconversion in Nd 3+ -doped samples