Forming or treating discontinuous thin films