Modeling of three-terminal heterojunction bipolar transistor solar cells