Study of transverse effects in optical bistable ring resonators using the finite element method