Spanning trees and even integer eigenvalues of graphs