Quasi-in-plane leaky lasing modes from thin waveguiding layers of nematic and cholesteric liquid crystals