Means for applying energy, e.g. heating means in the upper part of the bonding apparatus, e.g. in the bonding head