DeepGraphLog for Layered Neurosymbolic AI