Energy bands and soft X-ray absorption and emission in cuprous chloride