Two-dimensional topological nodal line semimetal in layered X 2 Y ( X = Ca , Sr, and Ba; Y = As , Sb, and Bi)