Exploring optoelectronic properties and mechanisms of layered ferroelectric K4Nb6O17 nanocrystalline films and nanolaminas