Mean exit time for diffusion on irregular domains