Generation of tailored terahertz waves from monolithic integrated metamaterials onto spintronic terahertz emitters