Child custody and substance abuse