Optare is to supply 31 all-electric double deck buses to Transport for London (TfL) to start operation next summer.