Study of the spread of viral diseases based on modifications of the SIR model