Brittle-to-ductile transition and slip band structure in ionic crystals