Feature extraction in motor activity signal: towards a depression episodes detection in unipolar and bipolar patients