A method for manufacturing a solar cell and solar cell