Analysis of spectral functions in lattice QCD with the maximum entropy method