design and implementation of lighting switching control system pdf