Determining the objective function for geophysical joint inversion