A compact method for measuring parasitic resistances in bipolar transistors