Generation of Multiphoton Entangled States with Linear Optical Elements