Measurement of the cross section for prompt isolated diphoton production using the full CDF run II data sample