Theory of magnetoelectric effect in multilayer nanocomposites on a substrate: Static bending-mode response