Tripartite entanglement generation via four-wave mixings: narrowband triphoton W state