B-type solar cells