Two-dimensional transverse solitary waves as asymptotic states of the field in a bistable optical resonator