Dynamics of laser produced plasma from foam targets for future nanolithography devices and X-ray sources