Text this: Multilayered solar energy converters with flexible sequence of p and n semiconductor films