Dynamic Network Modeling from Temporal Motifs and Attributed Node Activity