Nonlocal thermoelastic waves inside nanobeam resonator subject to various loadings