Monitoring activity of patients with bipolar disorder using smart phones