Experimental and theoretical study of the mechanism of action of the antimalarial drug chloroquine