HST Survey of the Orion Nebula Cluster in the H2O 1.4 μm Absorption Band. I. A Census of Substellar and Planetary-mass Objects