Engineering quantum confined silicon nanostructures: ab-initio study of the structural, electronic and optical properties