Effects of excitons on solar cells