The minimal work cost of information processing