Robopocalypse may well be the summer’s best movie — in book form