Leveraging mixed-valency for the development of electrically conductive and porous hybrid materials