Reversible magnetoelectric switching in multiferroic three-dimensional nanocup heterostructure films