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