Power-generating glass