Spray-on solar cell