Thermally switchable photonic band-edge to random laser emission in dye-doped cholesteric liquid crystals