Bending of nanoscale ultrathin substrates by growth of strained thin films and islands