Flexomagnetic effect in frustrated triangular magnetic structures