Optical and Electronic Properties of the p-type semiconductors BiCuOSe and SnS