Measurement of X-rays from anti-protonic hydrogen and deuterium