If any person asks to be excused from testifying before a state grand jury or from producing any books, papers, records, correspondence or other documents before a state grand jury on the ground that the testimony or evidence required of him may tend to incriminate him or subject him to any penalty or forfeiture and such person, notwithstanding such ground, is directed by the impaneling judge to give the testimony or produce the evidence, he shall comply with this direction, but no testimony so given or evidence produced may be received against him in any criminal action, investigation or criminal proceeding. No individual testifying or producing evidence or documents is exempt from prosecution or punishment for any perjury committed by him while so testifying, and the testimony or evidence given or produced is admissible against him upon any criminal action, criminal investigation or criminal proceeding concerning this perjury; however, any individual may execute, acknowledge and file a statement with the appropriate court expressly waiving immunity or privilege in respect to any testimony given or produced and thereupon the testimony or evidence given or produced may be received or produced before any judge or justice, court tribunal, grand jury or otherwise, and if so received or produced, the individual is not entitled to any immunity or privilege on account of any testimony he may give or evidence produced.