Linear dynamic response of nanobeams accounting for higher gradient effects