An efficient fluid–structure interaction model for optimizing twistable flapping wings