Elastic properties of nanostructured materials with layered grain boundary structure