Bendability optimization of flexible optical nanoelectronics via neutral axis engineering