In addition to political censorship and budget cuts, libraries are being undermined by rapacious digital licensing agreements