Donor layer-acceptor chain formation in the LaNiGe2 structure: A crystallographic and computational study