mCAT: Development of a Generic mHealth Tool for Continuous Assessment, Automatic Intervention, and Analysis