Joining of advanced ceramics, glasses and composites