Joining of a first substrate with a second substrate at least partially inside the first substrate, where the bonding area is at the inside of the first substrate