Relativistic mean field plus exact pairing approach to open shell nuclei