Modeling the H2O submillimeter emission in extragalactic sources