Formation of hidden-charm pentaquarks in photon-nucleon collisions.