Generation of multiphoton entangled quantum states with a single silicon nanowire