Morphologies and stellar populations of galaxies in the core of Abell 2218