Cyber-contagion model with network structure applied to insurance