Impact of underwriting cycles on the solvency of an insurance company