Generalized thermoelastic diffusion in a nanoscale beam using eigenvalue approach