Ab-initio study of the effects of pressure and chemistry on the electron-capture radioactive decay constants of 7Be, 22Na and 40K