Photonic simulation of the Dirac equation in metamaterials