Magneto-mechanical optimization and analysis of a magnetostrictive cantilever beam for energy harvesting