Optical gain in nanocrystalline silicon: comparison of planar waveguide geometry with a non-waveguiding ensemble of nanocrystals