Automatic design of chiral mechanical metamaterials