Lyapunov-type inequality for a class of even-order linear differential equations