Planar Channeling of Electrons and Positrons in Crystals. Local-Density Calculation of Planar Averaged Potential and Channeling Radiation Spectrum