High efficient Si nano-textured light-emitting diodes and solar cells with obvious photonic crystal effect