Doping efficiency and confinement of donors in embedded and free standing Si nanocrystals