Chain entropy and wetting energy control the shape of nanopatterned polymer brushes