Joining metals with the aid of glass