Photonic properties of organic micro resonators and ferroelectric polar crystal two photon luminescence second harmonic generation and terahertz wave production