If the petition is not approved or is withdrawn before approval, evidence pertaining to or resulting from the petition and/or investigation is inadmissible in any trial on the charges, but shall be available for use after a conviction in determining a sentence.