Bending problems in the theory of elastic materials with voids and surface effects