On viscoelastic transient response of magnetically imperfect functionally graded nanobeams