A nonuniform L2 formula of Caputo derivative and its application to a fractional Benjamin–Bona–Mahony‐type equation with nonsmooth solutions