Mathematical model for the adsorption-induced nonlocal frequency shift in adatoms-nanobeam system