Reverse-engineering infrared-based electronic shelf labels