Victim testifies Brooklyn prison guard raped her, threatened her with solitary