Fast and slow flexural waves in a deviated borehole in homogeneous and layered anisotropic formations