Advanced 2D two-phase flow simulation tool for application to reactor safety