One-dimensional theory of cracked Bernoulli-Euler beams