Boris Johnson braced for two by-election results as polls close