A ternary memory module using low-voltage control over optical properties of metal-polypyridyl monolayers