Christina Ricci agrees custody arrangement with estranged husband James Heerdegen