Superconductivity in thin films and small particles