Programmable nano-photonics with electrically controlled phase-change materials