Gauged Supergravities from Twisted Doubled Tori and Non-Geometric String Background