Determination of lifetime and surface recombination velocity in solar cells