Functional connections between drugs, genes and diseases as revealed by common gene-expression changes