Ferroelectric composites for pyro-and piezoelectric applications