Magnetic transitions of superconducting thin films and foils. II. Tin