Half-BPS supergravity solutions and superalgebras