Entangled states and collective nonclassical effects in two-atom systems