A characterization of the first hitting time of double integral processes to curved boundaries