A quantum mechanical strategy to investigate the structure of liquids: the cases of acetonitrile, formamide and their mixture