Grain Boundaries Structures And Wetting In Doped Silicon, Nickel And Copper