Emission spectroscopy of photodissociating water molecules: A time-independent ab initio study