Materials and devices for solar cells