Nonlinear frequency analysis of buckled nanobeams in the presence of longitudinal magnetic field