Text this: Image analysis optimization for nanowire-based optical detection of molecules