Magnetoelectric Effects in Complex Oxides with Competing Ground States