Structural principle of solar colloid battery