Dynamic instability of magnetically embedded functionally graded porous nanobeams using the strain gradient theory