Electrically programmable multi-purpose nonvolatile metasurface based on phase change materials