I have to replace a cupboard light on an old circuit that is on an automated switch (light comes on inside when you open the door) however I have three separate white cables each with one black wire and one red wire. In addition, two of the white cables have an earth wire as well. I am unsure how to...