Essays on pretrial detention decision-making : evidence from Brazil