Text this: An analysis of photocurrent in p-n junction solar cells