Exposing the key functions of a complex intervention for shared care in mental health: case study of a process evaluation