Inferring the structure of social contacts from demographic data in the analysis of infectious diseases spread - CX-nets