CIMNAS: A Joint Framework for Compute-In-Memory-Aware Neural Architecture Search