X-ray spectroscopy of the young supernova remnant RCW 86