Svag matchende rim for hetero-bipolar-transistor