Catalytic transformations with finite-size environments: applications to cooling and thermometry