Melting Spectral Functions of the Scalar and Vector Mesons in a Holographic QCD Model