Design of ultra-thin solar cells