Learning to Extend Molecular Scaffolds with Structural Motifs