CiMNet: Towards Joint Optimization for DNN Architecture and Configuration for Compute In-Memory Hardwar