Interaction between two two-level atoms coupled to N-level quantum system