Investigation and sentencing: an analysis of how corruption legal processes change electoral preferences