Regularized reconstruction of the differential emission measure from solar flare hard X-ray spectra