Investigating the Impact of Pretrial Detention on Sentencing