Genus distribution of graph amalgamations: pasting when one root has arbitrary degree