Street lights on two main roads in East Yorkshire are to be switched off at night as part of an energy saving trial.