Quantum confinement in nanoscale silicon: The correlation of size with bandgap and luminescence