Theoretical studies of possible excitonic superconducting state in CuCl and CdS