Electronic Structure Investigation of Photoswitch-Embedded Organic Frameworks and External Electric Field Effects on Carbon Dioxide