Science fiction has always been one of literature's most imaginative genres, as it gives authors freedom to explore everything from alien invasions and artificial intelligence to dystopian futures.