Gauged seven-dimensional supergravity