Complex magnetic phase diagram of the ternary stannide Nd2Ni2Sn