Optical excitation of Josephson plasma solitons in a cuprate superconductor