The computation of optimal singular bang‐bang control I: Linear systems