Generation of entangled states in the framework of cavity-QED: Schemes for generation of multipartite entangled states with atomic chains in the framework of cavity quantum electrodynamics