Thermodynamics of information processing in small systems