An optimization model for amorphous solar cells in which optical, electrical and recombination properties are specified