A theoretical approach to solar energy