Relativistic mean field study of light medium nuclei away from beta stability