The Dark Matter, Gas and Galaxy Distributions in Abell 2218: A Weak Gravitational Lensing and X-ray Analysis