How does remote control works in modulating and demodulating signals and why does it works in 38khz frequency?