Measurement of electron capture to positron emission ratios in light and medium nuclides