The growth mechanism of silicon nanowires and their quantum confinement effect