The adjacency dimension of graphs