A study on clustering-based power trace classification for side channel attacks