Fabrication, characterisation and modelling of heterojunction bipolar transistors and resonant tunnelling diodes based on indium phosphide