Solar gamma ray probe of local cosmic ray electrons