The beam and detector for the NA48 neutral kaon CP violation experiment at CERN