Effect of metallic and hyperbolic metamaterial surfaces on electric and magnetic dipole emission transitions