The early-type galaxies NGC 1407 and NGC 1400 – II. Star formation and chemical evolutionary history