Growth, characterization, and function of ferroelectric, ferromagnetic thin films and their heterostructures