Reprogramming and modeling glial encapsulation surrounding implanted electrodes