One-boson-exchange potential and structure of finite nuclei in the local-density approximation