Automatic design of mechanical metamaterial actuators