Optical spectroscopy of nP Rydberg states of Rb87 atoms with a 297-nm ultraviolet laser