On determining the electron density distribution of the solar corona from K-coronameter data