Real-time flooding risk evaluation for ship-to-ship collisions based on first principles