Resonant magnetoelectric response of composite cantilevers: Theory of short vs. open circuit operation and layer sequence effects