MIRI-LRS spectrum of a cold exoplanet around a white dwarf: water, ammonia, and methane measurements