Magnetoelectric heterostructures for spintronics and magnetic sensing