Mass detection in nanobeams from bending resonant frequency shifts