Soft x-ray absorption of FePS3 and NiPS3