Generalized regularization techniques with constraints for the analysis of solar bremsstrahlung x-ray spectra