Energy harvesting from a nanopiezoelectric/piezomagnetic sandwich beam with porous properties