BJT-based detector on high-resistivity silicon with integrated biasing structure