what is the formal investigation prior to trial in which the defense uses various methods to obtain information from the prosecution to prepare for trial?