Optimal inversion of hard X-ray bremsstrahlung spectra: I - SVD analysis