The death toll from two separate colliery accidents in south-west China has risen to 40, even as the authorities blamed illegal mining for the tragedies.