Improved characterization of open immersions