Intelligent road lighting control in varying weather conditions