Simultaneous imaging and element differentiation by resonant neutron ghost imaging