Low Power State Assignment Algorithm for FSMs Considering Peak Current Optimization