Designing automated systems for sample preparation of nucleic acids using isotachophoresis