The nucleon mass in Nf=2 lattice QCD: finite size effects from chiral perturbation theory