Mechanical losses and dielectric properties in ferroelectric-ferromagnetic composites