The lord advocate has been grilled by MSPs over her email about a criminal charge against the ex-SNP chief executive.