China detains Ai Weiwei as a warning against dissent