Carathéodory solutions of Sturm-Liouville dynamic equation with a measure of noncompactness in Banach spaces