A gradient elasticity model of Bernoulli–Euler nanobeams in non-isothermal environments