Momentum-space entanglement and Loschmidt echo in Luttinger liquids