Brad Pitt, Angelina Jolie reach temporary custody agreement