Design and analysis of solar cells by coupled electrical - optical simulation