United says failed generator forced 787 landing