Biomolecule detection using a silicon nanoribbon: accumulation mode versus inversion mode