Generation of highly efficient terahertz radiation in ferromagnetic heterostructures and its application in spintronic terahertz emission microscopy (STEM)