The tagged photon beam facility at the Bonn 500 MeV synchrotron