Numerical study on heat transfer effects of cavitating and flashing flows based on homogeneous mixture model