An improved analysis of the Schottky barrier solar cell