Intermediate resonance excitation in the gamma p ---> p pi0 pi0 reaction