A New Generalized Detailed Balance Formulation to Calculate Solar Cell Efficiency Limits