Microscopic magnetic nature of layered cobalt dioxides investigated by muon-spin rotation and relaxation