Periodic solutions and circuit design of chaos in a unified stretch-twist-fold flow