Localization of transverse waves in randomly layered media at oblique incidence