An Optimization Study on Thermal Energy Harvesting from Micro Cavitating Flows