Measurement of B (psi(3770) --> gamma chi_c1) and search for psi(3770)-->gamma chi_c2