Flexible microelectrode arrays with integrated insertion devices