Lifetimes of doubly charmed baryons