iDrug: Integration of drug repositioning and drug-target prediction via cross-network embedding