Mapping Transformation Enabled High-Performance and Low-Energy Memristor-Based DNNs