An Automatic Method for the Analysis of Pitch Profile in Bipolar Patients