First principles based theory of magnetic impurities embedded onto the surface of superconducting host, an application to MnNb(110)