Finite bending of multilayered elastic continua