Functionalization of monolayer-CdS by metal and non-metal elemental substitution: First-principle understanding