How to use your smartphone as a remote control for any IR device