Nonlinear beam formulation incorporating surface energy and size effect: application in nano-bridges