The role of secular resonances on trojans of the terrestrial planets