Flexomagnetic Response Of Nanostructures