N-p-n bipolar-junction-transistor detector with integrated p-n-p biasing transistor - feasibility study, design and first experimental results