Optimal field-free orientation of molecules with resonant tailored multicolor fields