An optimal inequality for Lagrangian submanifolds in complex space forms involving Casorati curvature