Birationally rigid singular double quadrics and double cubics