Reliability and Security of Compute-In-Memory Based Deep Neural Network Accelerators