The ratio of electron capture to positron emission in heavy nuclei