This development could help buildings generate electricity without shutting out daylight.