Relativistic continuum Hartree Bogoliubov theory for ground-state properties of exotic nuclei