Thomas Olivia, Psychiatre à Nice