Spectroscopic classification of X-ray selected stars in the ρ Ophiuchi star-forming region and vicinity