Shape demagnetization effect on layered magnetoelectric composites